function keyLeft(){<?php if(0+cfRGetVar('thumbnailsIndex')>0) echo 'goThumbnail('.max(0,0+cfRGetVar('thumbnailsIndex')-cfRGetVar('itemsPerPage')).',1);'?>}
function keyRight(){<?php if(cfRGetVar('thumbnailsIndex')+cfRGetVar('itemsPerPage')<efDirGetNbOfFiles($_ENV['weezoResEfFiles'])) echo 'goThumbnail('.((int)cfRGetVar('thumbnailsIndex')+(int)cfRGetVar('itemsPerPage')).',1);'?>}